﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Scrb_Daily_MainPage.aspx.cs" Inherits="Hisun.View.SCRB.Scrb_Daily_MainPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">

        .style3
        {
            width: 100%;
        }
        .style4
        {
            width: 477px;
        }
        </style> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table style="width:100%;">
            <tr>
                <td colspan="4"> 
                    <asp:Label ID="Label2" runat="server" Text=" *日报录入"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4"> 
                    <asp:Panel ID="Panel_CenterIdAndPIPid" runat="server"><asp:Label ID="Label7" 
                            runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_CostCenterId" runat="server" Height="26px" 
                        Width="180px" AutoPostBack="True" SkinID="DropdownList">
                    </asp:DropDownList><asp:Label ID="Label8" runat="server" Text="中间体：" SkinID="Label"></asp:Label>
                        <asp:DropDownList ID="DropDownList_PIPId" runat="server" 
                            DataSourceID="LinqDataSource1" DataTextField="中间体名称" DataValueField="中间体ID" 
                            Height="16px" SkinID="DropdownList" Width="138px">
                        </asp:DropDownList>
                        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                            ContextTypeName="Hisun.Models.HisunDBDataContext" Select="new (中间体ID, 中间体名称)" 
                            TableName="TABC_JS_ProductInProcess" 
                            Where="作业中心ID == @作业中心ID &amp;&amp; 可用 == @可用">
                            <WhereParameters>
                                <asp:ControlParameter ControlID="DropDownList_CostCenterId" Name="作业中心ID" 
                                    PropertyName="SelectedValue" Type="Int32" />
                                <asp:Parameter DefaultValue="True" Name="可用" Type="Boolean" />
                            </WhereParameters>
                        </asp:LinqDataSource>
                        <asp:Button ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                            Text="查询" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                                        <asp:Label ID="Label9" runat="server" SkinID="Label" Text="说明：每日生产信息记录"></asp:Label>
                                        <br />
                </td>
                <td>
                                        &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" valign="top">
                    <asp:Panel ID="Panel_GridView" runat="server">
                        <table class="style3" >
                            <tr valign="top">
                                <td class="style4" >
                                    每日数据：</td>
                            </tr>
                            <tr valign="top">
                                <td class="style4">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" SkinID="GridView" 
                                         >
                                        <Columns>
                                            <asp:BoundField DataField="日期" HeaderText="日期" 
                                                DataFormatString="{0:yyyy-M-d}" />
                                            <asp:TemplateField HeaderText="新增" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="bt_addbatch" runat="server" CausesValidation="False" 
                                                        CommandArgument='<%# Eval("日期") %>' CommandName="addbatch" Text="新增" 
                                                        oncommand="addbatch" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="中止" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button_PAUSE" runat="server" CausesValidation="false" 
                                                    CommandArgument='<%# Eval("日期") %>' CommandName="pausebatch"
                                                        Text="中止" oncommand="pausebatch" style="width: 40px" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="转出" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button4" runat="server" CausesValidation="false" 
                                                    CommandArgument='<%# Eval("日期") %>' CommandName="Diliverbatch"
                                                        Text="转出" oncommand="Diliverbatch" style="width: 40px"   />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="重投" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button_Reload" runat="server" CausesValidation="false" 
                                                    CommandArgument='<%# Eval("日期") %>' CommandName="Reloadbatch"
                                                        Text="重投" oncommand="Reloadbatch" style="width: 40px; height: 26px;" />
                                                           
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="拆并批" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button_Coll" runat="server" CausesValidation="false" 
                                                    CommandArgument='<%# Eval("日期") %>' CommandName="Collectbatch"
                                                        Text="拆并批" oncommand="Collectbatch" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="提交" ShowHeader="False" Visible="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button5" runat="server" CausesValidation="false" CommandName="" 
                                                        Text="提交" Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="结束" ShowHeader="False" Visible="False">
                                                <ItemTemplate>
                                                    <asp:Button ID="Button3" runat="server" CausesValidation="false" 
                                                        CommandArgument='<%# Eval("日期") %>' CommandName="Finishbatch" 
                                                        oncommand="Finishbatch" style="width: 40px; " Text="结束" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
             
        </table>
    
    </div>
    </form>
</body>
</html>
<%//=alter %>